//
//  OtherViewController.m
//  Piece
//
//  Created by dllo on 16/6/6.
//  Copyright © 2016年 Northeast Dianli University. All rights reserved.
//

#import "OtherViewController.h"
#import "JXLDayAndNightMode.h"
#import "XZHDayAndNightFunctionTableViewCell.h"

@interface OtherViewController ()<UITableViewDataSource, UITableViewDelegate>

@end

@implementation OtherViewController

- (void)viewDidLoad {
    [super viewDidLoad];
    [self createTitle:@"其他功能"];
    UITableView *tableView = [[UITableView alloc] initWithFrame:CGRectMake(0, 0, ScreenWidth, ScreenHeight) style:UITableViewStylePlain];
    
    
    
    tableView.delegate = self;
    tableView.dataSource = self;
    
    [tableView registerClass:[XZHDayAndNightFunctionTableViewCell class] forCellReuseIdentifier:@"dayAndNightCell"];
    [self.view addSubview:tableView];

    // Do any additional setup after loading the view.
}


- (NSInteger)tableView:(UITableView *)tableView numberOfRowsInSection:(NSInteger)section
{
    return 1;
}

- (UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath
{
    if(indexPath.row == 0) {
        XZHDayAndNightFunctionTableViewCell *cell = [tableView dequeueReusableCellWithIdentifier:@"dayAndNightCell"];
        cell.selectionStyle = UITableViewCellSelectionStyleNone;
        cell.textLabel.text = @"夜间模式";
        return cell;
    }
    return nil;
}

- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}

/*
#pragma mark - Navigation

// In a storyboard-based application, you will often want to do a little preparation before navigation
- (void)prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender {
    // Get the new view controller using [segue destinationViewController].
    // Pass the selected object to the new view controller.
}
*/

@end
